<?php

namespace App\Models\Faculty;

use App\Models\System\User;
use App\Models\Teachers;
use Illuminate\Database\Eloquent\Model;

class PlatformCredit extends Model
{
    protected $table = 'platform_credits';
    protected $guarded = [];
    protected $hidden = ['created_at','updated_at'];

    public function user()
    {
        return $this->hasOne(User::class, 'id', 'user_id');
    }
    public function teacher()
    {
        return $this->hasOne(Teachers::class, 'sx_id', 'sx_id');
    }
}
